INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})


SET(LIB_NAME OCVolume)

SET(TARGET_H
	VolumeDef.h
	VolumeMeta.h
	VolumeObject.h
	VolumeHeader.h
	Swan.h
	Swan3.h
	RadarSampler.h
	VolumeUtil.h
	VolumeEncoder.h
	VolumeExtent.h
	VolumeGridData.h
	VolumeAlgorithm.h
	VolumeOptions.h
	VolumeWriter.h
	VolumeJsonWriter.h
	VolumeD3Writer.h
	VolumeCompute.h
	VolumeMesh.h
	MarchingCubes/LookUpTable.h
	MarchingCubes/MarchingCubes.h
	MarchingCubes/ply.h
	GridData.h
	GridDataValue.h
	GridDataReader.h
	GridExtent.h
	GridDataAlgorithm.h
	GridDataCompute.h
	GridVariable.h
	GridFileReader.h
	GridBinReader.h
	CapBinDataReader.h
)

SET(TARGET_SRC
	src/Swan.cpp
	src/Swan3.cpp
	src/RadarSampler.cpp
	src/VolumeMeta.cpp
	src/VolumeObject.cpp
	src/VolumeHeader.cpp
	src/VolumeUtil.cpp
	src/VolumeEncoder.cpp
	src/VolumeExtent.cpp
	src/VolumeGridData.cpp
	src/VolumeAlgorithm.cpp
	src/VolumeOptions.cpp
	src/VolumeWriter.cpp
	src/VolumeJsonWriter.cpp
	src/VolumeD3Writer.cpp
	src/VolumeCompute.cpp
	src/VolumeMesh.cpp
	MarchingCubes/MarchingCubes.cpp
	MarchingCubes/ply.c
	src/GridData.cpp
	src/GridDataValue.cpp
	src/GridDataReader.cpp
	src/GridExtent.cpp
	src/GridDataAlgorithm.cpp
	src/GridDataCompute.cpp
	src/GridFileReader.cpp
	src/GridVariable.cpp
	src/GridBinReader.cpp
	src/CapBinDataReader.cpp
)

SETUP_GROUP()

IF(WIN32)
	SET(TARGET_LIBRARIES
		jsoncpp
		OCMain
		OCesium
	)
	SET(TARGET_EXTERNAL_LIBRARIES 

	)
ELSE(WIN32)
	INCLUDE_DIRECTORIES(/usr/include/jsoncpp)
	SET(TARGET_LIBRARIES
		OCMain
		OCesium
	)
	SET(TARGET_EXTERNAL_LIBRARIES 
		jsoncpp
	)
ENDIF(WIN32)




SETUP_LIBRARY(${LIB_NAME})

ADD_DEPENDENCIES(${LIB_NAME} OCMain)
ADD_DEPENDENCIES(${LIB_NAME} OCesium)
